package demon2;
/*
* 通过实现Runnable接口来创建线程
*
* */
public class Mythread_2 implements Runnable{
    @Override
    public void run() {
        System.out.println("通过Runnable接口来创建多线程");
    }

    public static void main(String[] args) {
        Thread thread=new Thread(new Mythread_2());
        thread.start();
    }
}
